package cn.edu.hbsi.web.controller;

import cn.edu.hbsi.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController
{
    @GetMapping
    public User getUser()
    {
        User user = new User();
        user.setId(1);
        user.setUsername("admin");
        user.setPassword("123456");
        user.setAge(18);
        user.setSex("男");
        return user;
    }
}
